package com.mark.fluttermarktrip;

import android.os.Bundle;

import com.mark.asr_plugin.AsrPlugin;

import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
import org.devio.flutter.splashscreen.SplashScreen;


public class MainActivity extends FlutterActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    SplashScreen.show(this, true);// here
    super.onCreate(savedInstanceState);
    GeneratedPluginRegistrant.registerWith(this);

    ///注册自己的 Plugin 插件
    resisterSelfPlugin();
  }

  /**
   * 注册自己的 Plugin 插件
   */
  private void resisterSelfPlugin() {
    AsrPlugin.registerWith(registrarFor("com.mark.asr_plugin.AsrPlugin"));
  }
}
